package aos.entity;
import java.io.Serializable;

public class Message implements Serializable {
	private static final long serialVersionUID = 1L;

	private int fromId;
	private int toId;
	private int logicTime;
	private MessageType type;

	public Message(int fromId, int toId, int logicTime, MessageType type) {
		this.fromId = fromId;
		this.toId = toId;
		this.logicTime = logicTime;
		this.type = type;
	}

	public String toString() {
		return "fromId: " + fromId + " toId: " + toId + " logicTime: "
				+ logicTime + " type: " + type;
	}

	public int getFromId() {
		return fromId;
	}

	public void setFromId(int fromId) {
		this.fromId = fromId;
	}

	public int getToId() {
		return toId;
	}

	public void setToId(int toId) {
		this.toId = toId;
	}

	public int getLogicTime() {
		return logicTime;
	}

	public void setLogicTime(int logicTime) {
		this.logicTime = logicTime;
	}

	public MessageType getType() {
		return type;
	}

	public void setType(MessageType type) {
		this.type = type;
	}
}
